<table class="tab-product-order tab-buy-car js_cartListTable cartPayClass" data-pay_account_id="{$alipay_account}">
  <tr class="head">
    <td class="td1"><span>商品</span></td>
    <td class="td2"><span>单价</span></td>
    <td class="td3"><span>数量</span></td>
    <td class="td4"><span>小计</span></td>
    <td class="td5"><span>操作</span></td>
  </tr>
  {foreach $cart_list as $k=>$v}
  <tr {if $v.stock < 1}class="disabled"{elseif $v.is_gift == 1}class="js_isGift"{/if} data-sku_id="{$v.sku_id}" data-stock="{$v.stock}" data-is_promotion="{$v.is_promotion}" data-goods_id="{$v.goods_id}" {if $v.is_gift > 0}data-gift_ids="{join(',', $v.gift_ids)}," data-gift_num="{join(',', $v.gift_num)},"{/if}>
  {$property_list = goods_helper::get_sku_property_list($v.sku_id)}
    <td class="clearfix">
      <span class="product-img js_openLink" data-target="_blank" data-href="{AnUrl("goods/{$v.goods_id}")}"><img src="{_image($v.goods_cover)}" width="84"></span>
      {if $property_list}
      <div class="intro js_openLink" data-target="_blank" data-href="{AnUrl("goods/{$v.goods_id}")}">
        <p class="name">{$v.goods_title}{if $v.is_gift > 0}<i class="ico">赠品</i>{elseif $v.is_promotion > 0}<i class="ico">加购价</i>{/if}</p>
        {foreach $property_list as $p_v}
        <p class="colors">{$p_v.title}：<em>{$p_v.value}</em></p>
        {/foreach}
        {if $v.gift_detail}
        {foreach $v.gift_detail as $g_k=>$g_v}
        <p class="gift" data-gift_num="{$g_v.gift_num}">【赠品】 {$g_v.goods_title} X <em>{$g_v.goods_num}</em></p>
        {/foreach}
        {/if}
        {if $v.goods_notice}
        <p class="price notice"><span>{$v.goods_notice}</span></p>
        {/if}
      </div>
      {else}
      <span class="name js_openLink" data-target="_blank" data-href="{AnUrl("goods/{$v.goods_id}")}">{$v.goods_title}{if $v.is_gift > 0}<i class="ico">赠品</i>{elseif $v.is_promotion > 0}<i class="ico">加购价</i>{/if}
        {if $v.gift_detail}
        {foreach $v.gift_detail as $g_k=>$g_v}
        <p class="gift" data-gift_num="{$g_v.gift_num}">【赠品】 {$g_v.goods_title} X <em>{$g_v.goods_num}</em></p>
        {/foreach}
        {/if}
        {if $v.goods_notice}
        <p class="price notice"><span>{$v.goods_notice}</span></p>
        {/if}
      </span>
      {/if}
    </td>
    <td>{number_format($v.goods_price, 2)}</td>
    <td class="js_goodsNumTD">
      <span class="add-sub clearfix">
        {if $v.is_gift > 0}
        {$v.goods_num}
        {elseif $v.is_promotion > 0}
          1            
        {else}
        <a href="javascript:;" class="sub {if $v.goods_num == 1}sub-disabled{/if} js_goodsNumSub"></a>
        <input type="text" value="{$v.goods_num}" class="txt1 js_cartGoodsNum"/>
        <a href="javascript:;" class="add js_goodsNumAdd"></a>
        {/if}
      </span>
    </td>
    {if $v.stock < 1}
    <td>当前商品无库存</td>
    {else}
    <td class="js_currCount">{if $v.is_gift > 0}0.00{else}{number_format($v.goods_price*$v.goods_num, 2)}{/if}</td>
    {/if}
    <td>{if $v.is_gift == 0}<a href="javascript:;" class="del js_cartDelete"></a>{/if}</td>
  </tr>
  <script type="text/javascript">
  s.products+=";{$v.goods_id},";
  </script>
  {/foreach}
</table>
<div class="reduct-active clearfix cartPayClass" data-pay_account_id="{$alipay_account}">
  {if $promotion_list}
  <div class="add-moneny">
    <ul class="js_relationUl">
      {foreach $promotion_list as $k=>$v}
      {$in_cart_sku_id = cart_helper::goods_in_cart($v.goods_id)}
      <li class="js_sltDiscountGoods {if $in_cart_sku_id}current{/if}" data-type="{if $in_cart_sku_id}enabled{else}disabled{/if}" data-id="{$v.id}" data-sku_id="{$in_cart_sku_id}" data-sku_ids="{$v.sku_ids}" data-sku_num="{$v.sku_num}" data-title="{$v.title}" data-cover="{$v.cover}" data-goods_id="{$v.goods_id}">
        <label class="not-line"><span class="check-wrap {if $in_cart_sku_id}checked{/if}"><input type="checkbox" class="chechbox1" /></span>+{$v.sale_price}元得{$v.title}</label>
        <div class="box">
          <i class="icon"></i>
          <span class="img-box"><img src="{_image($v.cover)}" width="60" height="68"></span>
          <div class="con">
            <h2 class="tit"><a href="javascript:;">{$v.title}</a></h2>
            <p class="price">特惠价：￥{$v.sale_price} <span class="old">{$v.price}</span></p>
          </div>
        </div>
      </li>
      {/foreach}
    </ul>
  </div>
  {/if}
  <!--end add-moneny-->
  <div class="product-total">
    <div class="js_cartPromotionInfo">
      {if $promotion_sub_info}
      <p class="prompt"><i class="ico">满减</i>活动商品已购满{number_format($promotion_sub_info.limit_price, 2)}元，已减{number_format($promotion_sub_info.offer_price, 2)}元</p>
      {/if}
    </div>
    <P><span class="name">商品总计：</span><span class="num"><em class="js_cartCount js_cartCount_{$alipay_account}">{cart_helper::get_cart_price_total(1, 1, 1, $cart_list)}</em>元</span></p>
  </div>
  <!--end product-total-->
</div>
<!--end reduct-active-->
<div class="coupons-btns">
  {$cart_count = cart_helper::get_cart_price_total(0, 1)}
  {$has_count = 98 - $cart_count}
  {*
  <p class="left js_freeExpressPrice">{if $has_count > 0}还需 {number_format($has_count, 2)} 元在线支付免运费{/if}</p>
  *}
  <p class="btns"><a href="javascript:history.back();" class="back-buy-car">返回购物</a>{if $cart_list}<a data-href="{AnUrl("order/trade?pay_account={$alipay_account}")}" data-login="1" href="javascript:void(0);" class="pay-btn js_subCart" id="baiduTjBtnAccount">去付款</a>{/if}</p>
</div>